package com.sihan.swvp.dao.sys;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.sihan.swvp.dao.BaseDao;
import com.sihan.swvp.entity.video.VideoSyn;


public interface VideoAutoMatchDao extends BaseDao{

	public List<VideoSyn> getNoMatchsVideo(Map<String,Object> params);
	
	public void deleteTaskVideo(VideoSyn video);

	public void addTaskVideo(VideoSyn video);
	
	public void updateTaskVideo(@Param("vmid")String vmid,@Param("gcid")String gcid);

	public List<Map<String, Object>> getTaskByRole(@Param("roleid")int roleid,@Param("start") Date start,@Param("end") Date end);

	public void changeMatchState(@Param("videoid")int video, @Param("match")int i);
	
	public List<Map<String, Object>> getTaskBySb(@Param("sbid")String sbid,@Param("start") Date start,@Param("end") Date end);
	
	public List<Map<String, Object>> getJsVideos(@Param("taskid")String taskid, @Param("jsid")String jsid);
	
	/**
	 * 过期
	 * @param jsid
	 * @return
	 */
	public List<Map<String, Object>> getGcByJs(@Param("jsid")String jsid);

	public void taskComplete(@Param("taskId")String taskId);

	public List<Map<String, Object>> getGcByRw(@Param("rwid")String rwid);

	
}
